package com.heeexy.example.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.heeexy.example.dao.ListDateDao;
import com.heeexy.example.service.ListDateService;
import com.heeexy.example.util.CommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ListDateServiceImpl<string> implements ListDateService{
    @Autowired
    private ListDateDao listdateDao;

    /**
     * 文章列表
     */
    @Override
    public JSONObject listDate(JSONObject jsonObject) {
        JSONObject list = new JSONObject();
        //string date_test=(string) list.get("value_day");
        //list.put("value_day",date_test);
        int list1 = listdateDao.listDate1(jsonObject);
        int list2 = listdateDao.listDate2(jsonObject);
        int list3 = listdateDao.listDate3(jsonObject);
        int list4 = listdateDao.listDate4(jsonObject);
        int list5 = listdateDao.listDate5(jsonObject);
        int list6 = listdateDao.listDate6(jsonObject);
        list.put("navigation_satellites",list1);
        list.put("communications_satellites",list2);
        list.put("miscellaneousc_satellites",list3);
        list.put("scientific_satellites",list4);
        list.put("specialinterest_satellites",list5);
        list.put("weather_earth_resources_satellites",list6);
        return  CommonUtil.successJson(list);
    }



}
